<!--
 * @Author: SingleBiu
 * @Date: 2025-10-29 20:02:36
 * @LastEditors: SingleBiu
 * @LastEditTime: 2025-10-29 20:02:40
 * @Description: file content
-->
<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>用户仪表板 - ES User System</title>
    <link rel="stylesheet" href="/static/css/style.css">
</head>
<body>
    <div class="container dashboard">
        <h1>用户管理系统</h1>
        
        <div class="user-info">
            <h3>当前登录用户</h3>
            <p><strong>用户ID:</strong> {{.UserID}}</p>
            <p><strong>姓名:</strong> {{.UserName}}</p>
            <button class="btn-logout" onclick="location.href='/logout'">退出登录</button>
        </div>

        <h3>所有用户列表</h3>
        <table class="users-table" id="usersTable">
            <thead>
                <tr>
                    <th>用户ID</th>
                    <th>姓名</th>
                </tr>
            </thead>
            <tbody>
                <!-- 用户数据将通过JavaScript动态加载 -->
            </tbody>
        </table>
    </div>
    <script src="/static/js/script.js"></script>
</body>
</html>